<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nih: nih::Sample_window&lt; Image_type &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nih
   &#160;<span id="projectnumber">0.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classnih_1_1_sample__window.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">nih::Sample_window&lt; Image_type &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__sampling.html">Sampling</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="nih::Sample_window" -->
<p><code>#include &lt;<a class="el" href="sampler_8h_source.html">sampler.h</a>&gt;</code></p>

<p><a href="classnih_1_1_sample__window-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnih_1_1_sample__window_1_1_row.html">Row</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnih_1_1_sample__window.html#aa12be238726bcf76f72449060af48667">Sample_window</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnih_1_1_sample__window.html#a72a4940dca015579b6ca138529b72df9">Sample_window</a> (const Image_type &amp;X, const uint32 x_min, const uint32 x_max, const uint32 y_min, const uint32 y_max)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnih_1_1_sample__window.html#af849b55c2fa39c9e5cb778d3a9a3d532">rows</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnih_1_1_sample__window.html#a007cc41b50f9816fb80af1c09718b571">cols</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnih_1_1_sample__window.html#a4014f7b1128df057a162c1ceee7ef702">size</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnih_1_1_sample__window.html#a24c29fe1b7efccda087cf5c7082b84ba">operator()</a> (const uint32 d, const uint32 i) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structnih_1_1_sample__window_1_1_row.html">Row</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnih_1_1_sample__window.html#a8558d04069ecf2a4f28323a82b1b5cf0">operator[]</a> (const uint32 i) const </td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Image_type&gt;<br/>
class nih::Sample_window&lt; Image_type &gt;</h3>

<p>Show a submatrix of a sample image </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa12be238726bcf76f72449060af48667"></a><!-- doxytag: member="nih::Sample_window::Sample_window" ref="aa12be238726bcf76f72449060af48667" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Image_type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnih_1_1_sample__window.html">nih::Sample_window</a>&lt; Image_type &gt;::<a class="el" href="classnih_1_1_sample__window.html">Sample_window</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>constructor </p>

</div>
</div>
<a class="anchor" id="a72a4940dca015579b6ca138529b72df9"></a><!-- doxytag: member="nih::Sample_window::Sample_window" ref="a72a4940dca015579b6ca138529b72df9" args="(const Image_type &amp;X, const uint32 x_min, const uint32 x_max, const uint32 y_min, const uint32 y_max)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Image_type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnih_1_1_sample__window.html">nih::Sample_window</a>&lt; Image_type &gt;::<a class="el" href="classnih_1_1_sample__window.html">Sample_window</a> </td>
          <td>(</td>
          <td class="paramtype">const Image_type &amp;&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint32&#160;</td>
          <td class="paramname"><em>x_min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint32&#160;</td>
          <td class="paramname"><em>x_max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint32&#160;</td>
          <td class="paramname"><em>y_min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint32&#160;</td>
          <td class="paramname"><em>y_max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>constructor </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a007cc41b50f9816fb80af1c09718b571"></a><!-- doxytag: member="nih::Sample_window::cols" ref="a007cc41b50f9816fb80af1c09718b571" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Image_type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classnih_1_1_sample__window.html">nih::Sample_window</a>&lt; Image_type &gt;::cols </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return cols </p>

</div>
</div>
<a class="anchor" id="a24c29fe1b7efccda087cf5c7082b84ba"></a><!-- doxytag: member="nih::Sample_window::operator()" ref="a24c29fe1b7efccda087cf5c7082b84ba" args="(const uint32 d, const uint32 i) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Image_type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="classnih_1_1_sample__window.html">nih::Sample_window</a>&lt; Image_type &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">const uint32&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint32&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return d-th component of the i-th sample </p>

</div>
</div>
<a class="anchor" id="a8558d04069ecf2a4f28323a82b1b5cf0"></a><!-- doxytag: member="nih::Sample_window::operator[]" ref="a8558d04069ecf2a4f28323a82b1b5cf0" args="(const uint32 i) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Image_type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnih_1_1_sample__window_1_1_row.html">Row</a> <a class="el" href="classnih_1_1_sample__window.html">nih::Sample_window</a>&lt; Image_type &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">const uint32&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return the i-th sample </p>

</div>
</div>
<a class="anchor" id="af849b55c2fa39c9e5cb778d3a9a3d532"></a><!-- doxytag: member="nih::Sample_window::rows" ref="af849b55c2fa39c9e5cb778d3a9a3d532" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Image_type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classnih_1_1_sample__window.html">nih::Sample_window</a>&lt; Image_type &gt;::rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return rows </p>

</div>
</div>
<a class="anchor" id="a4014f7b1128df057a162c1ceee7ef702"></a><!-- doxytag: member="nih::Sample_window::size" ref="a4014f7b1128df057a162c1ceee7ef702" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Image_type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classnih_1_1_sample__window.html">nih::Sample_window</a>&lt; Image_type &gt;::size </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return rows </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>sampling/<a class="el" href="sampler_8h_source.html">sampler.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>nih</b>      </li>
      <li class="navelem"><a class="el" href="classnih_1_1_sample__window.html">Sample_window</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Thu Dec 15 2011 11:56:22 for nih by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
